package com.catmiao.ai.controller;

import com.catmiao.ai.service.FunctionAssistant;
import jakarta.annotation.Resource;
import lombok.experimental.PackagePrivate;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class FunctionCallController {

    @Resource
    private FunctionAssistant functionAssistant;


    @GetMapping("/chatFunction")
    public String chatFunction(String message) {
        return functionAssistant.chat(message);
    }
}
